package com.SFA.OrderManagement;


import com.FrameWork.Common.AbstractBaseMapActivity;
import com.FrameWork.Common.MyMapView;
import com.SFA.R;
import com.baidu.mapapi.BMapManager;
import com.baidu.mapapi.CoordinateConvert;
import com.baidu.mapapi.GeoPoint;
import com.baidu.mapapi.LocationListener;
import com.baidu.mapapi.MKSearch;
import com.baidu.mapapi.MapView;
import com.baidu.mapapi.MyLocationOverlay;
import com.baidu.mapapi.MapView.LayoutParams;



import android.graphics.drawable.Drawable;
import android.location.Location;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;


public class MapActivity extends AbstractBaseMapActivity {
    
	private MyMapView mapView;
    @Override
    protected void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.map_activity);
        InitBaidu();
    }
    
    @Override
    protected boolean isRouteDisplayed() {
        return false;
    }
    
    



	
	protected void InitBaidu(){

		if (app.mBMapMan == null) {
			app.mBMapMan = new BMapManager(getApplication());
			app.mBMapMan.init(getResources().getString(R.string.MapKey), new com.FrameWork.Common.MyApplication.MyGeneralListener());
		}
		app.mBMapMan.start();
		super.initMapActivity(app.mBMapMan);
		
		mapView = (MyMapView) findViewById(R.id.mymapView);
		//mapView.buildDrawingCache(true);
		mapView.setDrawOverlayWhenZooming(true);
		//mapView.setOnTouchListener(this);
		mapView.setLongClickable(true);
		//mapView.OnLongClickListener = this;


		
	}



}



